﻿namespace FluentSql
{
    public class DalSqlConnectionFactory : IDalSqlConnectionFactory
    {
        #region Private Fields

        private readonly string ConnectionString;

        #endregion Private Fields

        #region Public Constructors

        public DalSqlConnectionFactory(string iConnectionString)
        {
            ConnectionString = iConnectionString;
        }

        #endregion Public Constructors

        #region Public Methods

        public DalSqlConnection CreateConnection()
        {
            return new DalSqlConnection(ConnectionString);
        }

        #endregion Public Methods
    }
}
